const BookData = require("../dao/book-data");
const CourseData = require("../dao/course-data");

class BrowseService {
  getBookData(ctx) {
    return {
      state: "OK",
      message: "获取到书籍数据",
      BookData,
    };
  }
  getCourseData(ctx) {
    return {
      state: "OK",
      message: "获取到课程数据",
      CourseData,
    };
  }
}

module.exports = new BrowseService();
